# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy

class ScrapysItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    ip = scrapy.Field()
    port = scrapy.Field()
    type = scrapy.Field()
    pass

class TestItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()

    origin = scrapy.Field() # 来源	CDE
    url = scrapy.Field()    # 网址
    regno = scrapy.Field()	# 登记号
    status = scrapy.Field() # 试验状态 没有可空缺
    pub_title = scrapy.Field()  # 试验通俗题目
    sci_title = scrapy.Field()  # 试验专业题目

    major_leader = scrapy.Field()
    # 主要研究者信息 数组[
        # study_leader姓名,
        # position职称,
        # phone电话,
        # Email,
        # leader_hosp_address地址,
        # postal地址,
        # leader_hosp单位名称,
    # ]

    sponsor = scrapy.Field()    # 申办者名称
    sponsor_contact = scrapy.Field()    # 申办者联系人
    time = scrapy.Field()    # 首次公示信息日期
    fee_source = scrapy.Field() # 试验项目经费来源
    indication = scrapy.Field() # 适应症
    product = scrapy.Field()    # 药物名称	CHICTR没有，暂设为缺失
    type = scrapy.Field()   # 试验分类
    phase = scrapy.Field()	# 试验分期
    purpose = scrapy.Field() # 研究目的
    design = scrapy.Field()	# 研究设计	设计类型
    inc = scrapy.Field()	# 入选标准	拆分成数组
    exc = scrapy.Field()	# 排除标准	拆分成数组
    groups = scrapy.Field()	# 试验分组
    code = scrapy.Field()	# 序号
    group = scrapy.Field()	# 名称
    use = scrapy.Field()	# 用法
    sites = scrapy.Field()	# 各参加机构信息 数组[code#序号,site#机构名称,major_leader#主要研究者,province# 省（州）,city# 城市, hospital# 机构名称]

    volunteer = scrapy.Field()	# 健康受试者
    sex = scrapy.Field()	# 性别
    age = scrapy.Field()	# 年龄
    age_lower = scrapy.Field()	# 最小
    age_upper = scrapy.Field()	# 最大
    random = scrapy.Field()	# 随机化
    blind = scrapy.Field()	# 盲法

    pass

class Www89ipItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    ip = scrapy.Field()
    port = scrapy.Field()
    type = scrapy.Field()
    pass

class ChinadrugtrialsItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    history = scrapy.Field()
    people = scrapy.Field()
    mess = scrapy.Field()
    pass
